package com.dys.pojo;

import java.util.Arrays;

/**
 * @className: com.dys.pojo.Person
 * @description: com.dys.pojo
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/10/26 15:54
 */
public class Person implements java.io.Serializable {
    private String pname;
    private String page;
    private String sex;
    private String[] hobby;
    private String birthDate;

    public Person() {
    }

    public Person(String pname, String page, String sex, String[] hobby, String birthDate) {
        this.pname = pname;
        this.page = page;
        this.sex = sex;
        this.hobby = hobby;
        this.birthDate = birthDate;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        System.out.println("setPname执行了......");
        this.pname = pname;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public String getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(String birthDate) {
        this.birthDate = birthDate;
    }

    @Override
    public String toString() {
        return "Person{" +
                "pname='" + pname + '\'' +
                ", page='" + page + '\'' +
                ", sex='" + sex + '\'' +
                ", hobby=" + Arrays.toString(hobby) +
                ", birthDate='" + birthDate + '\'' +
                '}';
    }
}
